import { createRouter, createWebHistory } from 'vue-router';

const constantRoutes = [
  {
    path: '/',
    component: () => import('@/views/home/index.vue'),
    hidden: true
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes: constantRoutes,
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition;
    }
    return { top: 0 };
  }
});

export default router;
